/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rdr.geo.map2d.tiles;

/**
 *
 * @author ruanor
 */
public class TileCreator {
    Tile create(String xmlTile){
        TileXmlReader txmlr = new TileXmlReader();
        txmlr.read(xmlTile);
        
        Tile tile = new Tile(txmlr.getImageFileName(),
                             txmlr.getLatitude(),
                             txmlr.getLongitude());
        
        return tile;
    }
}
